<?php
namespace app\index\route;
use think\facade\Route;

Route::get('/',function (){
    return  '沐歌的接口~';
});

//获取token
Route::get('token','Blog/token')->allowCrossDomain();
//移动端 starting
//博主详情
Route::get('bloggerInfo','Show/bloggerInfo');
//移动端获取侧边栏抽屉列表
Route::get('getDrawer','Blog/getDrawer');
//获取博客列表
Route::get('getBlogList','Blog/getBlogList');
//get->
//获取博客详情
Route::get('blogDetail','Blog/blogDetail');
//post->获取博客详情
Route::post('getBlogDetail','Blog/getBlogDetail');
//博文搜索功能
Route::post('blogSearch','Blog/blogSearch');


//pc
//获取导航栏数据
Route::get('getNavList','BlogType/getBlogtypeList');
//获取当前栏目下的文章数据
Route::post('getCurrentType','BlogType/getCurrentType');
//获取热文前十
Route::get('getHotBlog','Blog/getHotBlog');
//获取友情链接
Route::get('getLink','Blog/getLink');
//获取侧边栏数据
Route::get('getSideData','Blog/getSideData');
//根据tid获取文章列表
Route::post('getTidBlogList','Blog/getTidBlogList');
//根据年月获取文章列表
Route::post('getYearDayBlogList','Blog/getYearDayBlogList');
//更新文章访问量
Route::post('updateBlogVisited','Blog/updateBlogVisited');
//获取h5抽屉下 所有文章列表
Route::get('getDrawerBlogList','Blog/getDrawerBlogList');
//热更新
Route::get('updateHotRequest','Blog/updateHotRequest');

//获取token
Route::post('falseLogin','Login/falseLogin');
Route::get('falseInfo','Login/falseInfo');


